import request from '@/utils/nodeRequest'
import { base64Encode } from '@/utils/auth'

// Node 广告图片读取
export function getPhotos (data) {
  return request({
    url: '/share/v1.node/photos/getPhotos',
    method: 'post',
    data: {
      key: base64Encode(
        data
      )
    }
  })
}

// Node 存放用户通知
export function saveMessageToM (data) {
  return request({
    url: '/share/v1.node/customer/saveMessageToM',
    method: 'post',
    data: data
  })
}

// Node 获取用户通知
export function getMessage (data) {
  return request({
    url: '/share/v1.node/customer/getMessage',
    method: 'post',
    data: data
  })
}

